<%--
  Created by IntelliJ IDEA.
  User: 10254
  Date: 2021/3/19
  Time: 19:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册</title>
    <link rel="stylesheet" type="text/css" href="css/register.css"/>
</head>
<body>

　　<% response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "No-cache");
    response.setDateHeader("Expires", -1);
    response.setHeader("Cache-Control", "No-store"); %>

<div class="top">
    <a href="/query">←返回</a>
</div>
<div class="center">
    <div class="zhuce">
        <div>
            <form action="/register" method="post" onsubmit="false">
                <h2>用户注册</h2>
                <div class="margin">
                    <div class="detail">
                        <label for="username">账号：</label>
                        <input class="area" type="text" name="username" id="username" maxlength="10">
                    </div>
                    <div class="detail">
                        <label for="password">密码：</label>
                        <input class="area" type="password" name="userpassword" id="password">
                    </div>
                    <div class="detail">
                        <select class="detail1 area1">
                            <option selected="selected">中国 +86</option>
                            <option>中国香港特别行政区 +852</option>
                            <option>中国澳门特别行政区 +853</option>
                            <option>中国台湾地区 +886</option>
                        </select>
                        <input class="area2 detail1" type="text" name="phone" value="手机号" maxlength="15">
                    </div>
                    <div class="detail2">
                        昵称：<textarea class="area3" name="name" cols="30" rows="2"></textarea>
                    </div>
                    <div class="detail2">
                        年龄：<textarea class="area3" name="age" cols="30" rows="2"></textarea>
                    </div>
                    <div class="detail">
                        <input class="detail3 area4" id="go" type="submit" name="zhuce" value="立即注册">
                    </div>

                    <div class="detail4">
                        <input id="check" type="checkbox" checked="checked"> 我已阅读并同意相关服务条款和隐私政策
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="bottom">
    <a href="#">关于商铺</a>
    <a href="#">联系我们</a>
    <a href="#">官方合作</a>
    <a href="#">法律声明</a>
    <a href="#">知识产权</a>
    <hr>
    <span class="banquan">©2021-2121 MFDFL.COM 版权所有</span>
</div>

</body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script>

    $(function () {
        $("#go").on("click", function () {
            if (!$("#check").prop("checked")) {

                alert("同意协议后登录")
                return false

            } else {
                return true;
            }
        })


    })

</script>
</html>
